using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;
namespace DataAccess
{
    /// <summary>
    /// A custom serializable dataset containing CON_CONTRATOS information.
    /// </summary>
    [Serializable]
    [DesignerCategory("code")]
    public class FinAccionModificacionEpeData : DataTable
    {
        ///
        /// Constants for table and fields mapping
        ///
        public const String FIN_ACCION_EPE_TABLE = "FIN_ACCION_EPE";
        public const String FAE_ID_FIELD = "FAE_ID";
        public const String FAE_VALOR_EPE_FIELD = "FAE_VALOR_EPE";
        public const String FAE_VALOR_CDP_FIELD = "FAE_VALOR_CDP";
        public const String CFE_JUSTIFICACION_FIELD = "CFE_JUSTIFICACION";
        public const String FAE_CERTIFICADO_FIELD = "FAE_CERTIFICADO";
        public const String FAE_NUMERO_CDP_FIELD = "FAE_NUMERO_CDP";
        

        public FinAccionModificacionEpeData()
		{
			BuildDataTables();
		}
        protected FinAccionModificacionEpeData(SerializationInfo info, StreamingContext context)
		{
			//
		}
        /// <summary>
		/// 
		/// </summary>
		private void BuildDataTables()
		{
            Columns.Add(FAE_ID_FIELD, typeof(Decimal));
            Columns.Add(FAE_VALOR_EPE_FIELD, typeof(Decimal));
            Columns[FAE_VALOR_EPE_FIELD].Caption = "Valor EP";
            Columns.Add(FAE_VALOR_CDP_FIELD, typeof(Decimal));
            Columns[FAE_VALOR_CDP_FIELD].Caption = "Valor CDP";
            Columns.Add(CFE_JUSTIFICACION_FIELD, typeof(String));
            Columns[CFE_JUSTIFICACION_FIELD].Caption = "Motivo Modificacion";
            Columns.Add(FAE_CERTIFICADO_FIELD, typeof(String));
            Columns.Add(FAE_NUMERO_CDP_FIELD, typeof(String));
            Columns[FAE_NUMERO_CDP_FIELD].Caption = "FAE_NUMERO_CDP";
            TableName = FIN_ACCION_EPE_TABLE;
		}

        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        public void Add(DataRow row)
        {
            Rows.Add(row);
        }
        
    }
}